<%--
  Created by IntelliJ IDEA.
  User: lub_lenovo
  Date: 2017/11/2
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<script>
     $('.menu a').click(function(){
         var url=$(this).attr('url');
         var text=$(this).text();

         var href=url+'/menu/'+text+'.do';
         location.href=href;
     });

//    菜单高亮处理
     var menu='${menu}';
     $('.menu a:contains("'+menu+'")').parent().addClass("active");

</script>


</body>
</html>
